Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DCC Schema Refresh Fix #1

Open
wants to merge 15 commits into
base: 1.5-without-insta-changes
Choose a base branch
from
Open

Conversation

chrisw-instaclustr
Copy link

This is a diff against a branch that I created by checking out the commit before Stefan's first one and then cherrypicking the other 2 subsequent commits to 1.5 made by Debezium Builder. I think that should give a good basis to see the changes.

We probably don't need to merge this PR. We can just use it as a locus for comments.

@@ -4,20 +4,20 @@
<parent>
<groupId>io.debezium</groupId>
<artifactId>debezium-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.5.0.Final</version>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why these .Finals are showing up as diff - they are the same on the target branch.

@@ -71,6 +71,8 @@ private CassandraTypeConverter() {
typeMap.put(DataType.Name.TUPLE, new TupleTypeConverter());
typeMap.put(DataType.Name.UDT, new UserTypeConverter());
typeMap.put(DataType.Name.UUID, new BasicTypeConverter<>(UUIDType.instance));
typeMap.put(DataType.Name.VARINT, new BasicTypeConverter<>(IntegerType.instance));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're pretty confident in this side of the type conversion stuff - varint corresponds to IntegerType in the CQL code in C*.

@@ -80,6 +81,7 @@ private CassandraTypeDeserializer() {
tmp.put(DoubleType.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.DOUBLE_TYPE));
tmp.put(DecimalType.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.DOUBLE_TYPE));
tmp.put(Int32Type.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.INT_TYPE));
tmp.put(IntegerType.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.LONG_TYPE));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is likely borked - I don't think a long will be able to hold bigger IntegerType values.

chrisw-instaclustr and others added 3 commits April 13, 2021 08:34
…ndra into 1.5

# Conflicts:
#	REPORT.adoc
#	src/main/java/io/debezium/connector/cassandra/SchemaProcessor.java
#	src/test/java/io/debezium/connector/cassandra/CommitLogProcessorTest.java
#	src/test/java/io/debezium/connector/cassandra/SnapshotProcessorTest.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants